<div id="content">

    <div id="content-header">

        <div id="breadcrumb"><a href="<?php echo site_url('Login/login') ?>" title="Go to Home" class="tip-bottom"><i
                class="icon-home"></i> 主页</a> <a href="#" class="current">用户管理</a></div>

        <h1>代理用户列表</h1>

    </div>

    <div class="container-fluid">

        <hr>

        <div class="row-fluid">

            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"><i class="icon-th"></i></span>
                        <h5>Data table</h5>
                        <?php  $url=site_url('auth/show/addgrouprebate.html')?>
                        <div class="btn-group" style="position:absolute;right:0;">
                            <button data-toggle="dropdown" class="btn btn-success dropdown-toggle">增加 <span class="caret"></span></button>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo site_url('auth/show/addpersonrebate.html') ?>">个人返利等级</a></li>
                                <li><a href="<?php echo site_url('auth/show/addgrouprebate.html') ?>">团队返利等级</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="widget-content nopadding">
                        <table class="table table-bordered data-table">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>等级名称</th>
                                <th>类型</th>
                                <th>返利利率（%）</th>
                                <th>销售业绩下限（元）</th>
                                <th>销售业绩上限（元）</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $rows=$data[0];
                            foreach($rows as $value):
                            ?>
                            <tr class="gradeX">
                                <td><?php  echo $value['id']?></td>
                                <td><?php  echo $value['level']?></td>
                                <td><?php
                                 if($value['type']==1){
                                            echo "个人业绩等级";
                                 }else{
                                            echo "团队业绩等级";
                                 }
?></td>
                                <td class="center"><?php  echo $value['rebate_rate']?></td>
                                <td class="center"><?php  echo $value['sf']?></td>
                                <td class="center"><?php  echo $value['sc']?></td>
                            </tr>
                            <?php    endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>